package com.guoxin.zuche;

import com.guoxin.zuche.util.APNManage;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.LinearLayout;

public class GuoxinzucheActivity extends Activity implements OnClickListener{
    private View carRental;
	private View login;
	private View guoXin;
	private View aboutUs;
	private View feedback;

	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.main);
        new APNManage(this);
        initView();
        
    }

	private void initView() {
		// TODO Auto-generated method stub
		carRental = (View)this.findViewById(R.id.carRental);
		login = (View)this.findViewById(R.id.login);
		guoXin = (View)this.findViewById(R.id.guoXin);
		aboutUs = (View)this.findViewById(R.id.aboutUs);
		feedback = (View)this.findViewById(R.id.feedback);
		carRental.setOnClickListener(this);
		login.setOnClickListener(this);
		guoXin.setOnClickListener(this);
		aboutUs.setOnClickListener(this);
		feedback.setOnClickListener(this);
		
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		
		switch (v.getId()) {
		case R.id.carRental:
			
			break;

		case R.id.login:
			this.startActivity(new Intent(this,LoginActivity.class));
			break;
		case R.id.guoXin:
			 this.startActivity(new Intent(this,OrderActivity.class));
			break;
		case R.id.aboutUs:
			 this.startActivity(new Intent(this,AboutUsActivity.class));
			break;
		case R.id.feedback:
			  this.startActivity(new Intent(this, FeedbackActivity.class));
			break;
		default:
			break;
		}
		
		
	}
}